home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Think Class Libraries / CChoreQuartet 1.0.1 / READ ME < prev   
Encoding:
Text File  |  1994-11-30  |  1.3 KB  |  46 lines  |  [TEXT/R*ch]

  1. Name: CChore-Quartet
  2. Version: 1.0.1
  3. Category: classes
  4. Contributor: Jamie McCarthy <k044477@kzoo.edu>
  5. Date: 93-02
  6. TCL-Version: 1.1.x
  7. TCL-Language: C
  8. Copyright: Unknown
  9.  
  10. This is a quartet of tiny subclasses of CChore:
  11.  
  12.  
  13.                CChore
  14.               /  |   \
  15. CCancelerChore   |    CDisposerChore
  16.                  |
  17.         CSelfCancelableChore
  18.                  |
  19.            CCommanderChore
  20.  
  21. They are all very small, but are useful in a small kind of way.
  22.  
  23. CCancelerChore cancels another chore;  CDisposerChore disposes of
  24. an object;  both of these must be assigned urgently.
  25.  
  26. CSelfCancelableChore (making use of CCancelerChore) is a chore that
  27. can cancel itself.  And CCommanderChore is a chore that sends a
  28. command to the gGopher.
  29.  
  30. What I find most useful are the convenience routines:
  31.  
  32. void doCommandViaIdleChore(long theCommand);
  33. CCommanderChore *doCommandContinuouslyViaIdleChore(long theCommand);
  34. void doCommandViaUrgentChore(long theCommand);
  35. void disposeViaUrgentChore(CObject *theDisposee);
  36.  
  37. Changes since the first version:  CCommanderChore now catches errors;
  38. if the command it sends invokes an error, it cancels itself.  (Not much
  39. of a change, I know...)
  40. --
  41.  Jamie McCarthy      Internet: k044477@kzoo.edu      AppleLink: j.mccarthy
  42.  
  43.  
  44. (This file must be converted with BinHex 4.0)
  45.  
  46.